package com.two.screen.water.balance.bean.database;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class ProductDB {
    @Id(autoincrement = true)
    public Long   id;//本地id
    public String productName;//商品名称
    public Long   productId;//商品id
    public String oriPrice;//商品原价
    public String giftPrice;//优惠力度的钱，如原价10，优惠3块，3块就是giftPrice,暂时用不到。
    public String realPrice;//实际卖的价钱:
    public String weight;//重量、数量
    public String unitId;//单位id
    public int    unitType = 0;//对应服务器数据 im_tp 0 计重 1 计件
    public String unitName;//单位名称：市斤、斤、KG、500g、个、只、袋等等
    public String subTotalPrice;//小计 ：实际卖的价钱 * weight
    public String logoImage;//商品图片

    public Long   cateId;//商品分类id
    public String cateName;//商品分类名称

    //由于存在不同帐号，所拥有的商品的分类不一样。
    public Long   userId;//用户id
    public String userName;//用户名

    public String pinYinName;//名称拼音
    public String pinYinFirstSpell;//名称首字母

    public Boolean isSelected = false;//本地使用 :
    public int     isDeleted  = 0;//0 正常 1删除

    public Long   sort = 0L;//排序
    public String invNum;//简易库存数量

    @Generated(hash = 1364488574)
    public ProductDB(Long id, String productName, Long productId, String oriPrice, String giftPrice,
            String realPrice, String weight, String unitId, int unitType, String unitName,
            String subTotalPrice, String logoImage, Long cateId, String cateName, Long userId,
            String userName, String pinYinName, String pinYinFirstSpell, Boolean isSelected,
            int isDeleted, Long sort, String invNum) {
        this.id = id;
        this.productName = productName;
        this.productId = productId;
        this.oriPrice = oriPrice;
        this.giftPrice = giftPrice;
        this.realPrice = realPrice;
        this.weight = weight;
        this.unitId = unitId;
        this.unitType = unitType;
        this.unitName = unitName;
        this.subTotalPrice = subTotalPrice;
        this.logoImage = logoImage;
        this.cateId = cateId;
        this.cateName = cateName;
        this.userId = userId;
        this.userName = userName;
        this.pinYinName = pinYinName;
        this.pinYinFirstSpell = pinYinFirstSpell;
        this.isSelected = isSelected;
        this.isDeleted = isDeleted;
        this.sort = sort;
        this.invNum = invNum;
    }

    @Generated(hash = 1040855488)
    public ProductDB() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProductName() {
        return this.productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getProductId() {
        return this.productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getOriPrice() {
        return this.oriPrice;
    }

    public void setOriPrice(String oriPrice) {
        this.oriPrice = oriPrice;
    }

    public String getGiftPrice() {
        return this.giftPrice;
    }

    public void setGiftPrice(String giftPrice) {
        this.giftPrice = giftPrice;
    }

    public String getRealPrice() {
        return this.realPrice;
    }

    public void setRealPrice(String realPrice) {
        this.realPrice = realPrice;
    }

    public String getWeight() {
        return this.weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getUnitId() {
        return this.unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return this.unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getSubTotalPrice() {
        return this.subTotalPrice;
    }

    public void setSubTotalPrice(String subTotalPrice) {
        this.subTotalPrice = subTotalPrice;
    }

    public String getLogoImage() {
        return this.logoImage;
    }

    public void setLogoImage(String logoImage) {
        this.logoImage = logoImage;
    }

    public Long getCateId() {
        return this.cateId;
    }

    public void setCateId(Long cateId) {
        this.cateId = cateId;
    }

    public String getCateName() {
        return this.cateName;
    }

    public void setCateName(String cateName) {
        this.cateName = cateName;
    }

    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Boolean getIsSelected() {
        return this.isSelected;
    }

    public void setIsSelected(Boolean isSelected) {
        this.isSelected = isSelected;
    }

    public String getPinYinName() {
        return this.pinYinName;
    }

    public void setPinYinName(String pinYinName) {
        this.pinYinName = pinYinName;
    }

    public String getPinYinFirstSpell() {
        return this.pinYinFirstSpell;
    }

    public void setPinYinFirstSpell(String pinYinFirstSpell) {
        this.pinYinFirstSpell = pinYinFirstSpell;
    }

    public int getUnitType() {
        return this.unitType;
    }

    public void setUnitType(int unitType) {
        this.unitType = unitType;
    }

    public int getIsDeleted() {
        return this.isDeleted;
    }

    public void setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Long getSort() {
        return this.sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public String getInvNum() {
        return this.invNum;
    }

    public void setInvNum(String invNum) {
        this.invNum = invNum;
    }


}